import request from '@/utils/httpRequest'
import request_t from '@/utils/request'
// 获取所有实名认证信息
// limit
// page
// /sys/verified/list
export function getAuthList(query) {
  return request({
    url: '/sys/verified/list',
    method: 'get',
    params: query
  })
}

// 获取用户详情
// limit
// page
// /sys/verified/info/{userId}
export function getUserDetail(query) {
  return request({
    url: '/sys/appUser/info/' + query,
    method: 'get'
  })
}

// 修改auth 状态
// limit
// page
// /sys/verified/review
export function editAUth(query) {
  return request_t({
    url: '/sys/verified/review',
    method: 'post',
    params: query
  })
}

// 创建敏感字
// status
// title
export function CreateMgz(query) {
  return request({
    url: '/sys/sensWordFil/save',
    method: 'post',
    data: request.adornData(query, false)
  })
}

// 删除敏感字
// ids
export function DelUser(query) {
  // var new_data = qs.stringify(query);
  return request({
    url: '/sys/sensWordFil/delete',
    method: 'post',
    data: request.adornData(query, false)
  })
}

// 修改敏感字
// id
// status
// title
export function UpUser(query) {
  // var new_data = qs.stringify(query);
  return request({
    url: '/sys/appUser/update',
    method: 'post',
    data: request.adornData(query, false)
  })
}
